/*#include <iostream>
#include <vector>
#include <algorithm>
#include <iterator> //:3 hifistelyä

using namespace std;

void moro(int i) {
  cout << i << " " ;
}


int main() {
  vector<int> ve;
  ve.resize(6);
  int t[] = {5,6,7,8,9,10};
  // Tehtävä: lisää t[] suoraan listaan "li"
  // ks. copy()-funktio algorithms-kirjastosta
  copy (t, t+6, ve.begin());
  for_each (ve.begin(), ve.end(), moro);
  cout << endl;

  // t:n perään ao. arvot
  ve.push_back(1);
  ve.push_back(2);
  ve.push_back(3);
  ve.push_back(4);
  // [5,6,7,8,9,10,1,2,3,4]

  for_each (ve.begin(), ve.end(), moro);
  cout << endl;  

  for_each (reverse_iterator<vector<int>::iterator>(ve.end()), reverse_iterator<vector<int>::iterator>(ve.begin()), moro);
  cout << endl;


}*/